package org.demo.base.file.enums;

/**
 * 文件的类型：IMG、NORMAL
 * @author tomdog
 */
public enum FileType {
    IMG("image/jpg", "inline"),
    NORMAL("multipart/form-data", "attachment");

    private String contentType;
    private String attachment;

    private FileType(String contentType, String attachment) {
        this.contentType = contentType;
        this.attachment = attachment;
    }

    public String contentType() {
        return contentType;
    }

    public String attachment() {
        return attachment;
    }
}
